package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class ReportColumnTypes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final ReportColumnTypes Normal = new ReportColumnTypes(0,"Normal",null);
    public static final ReportColumnTypes CalcColumn = new ReportColumnTypes(1,"CalcColumn","calc");
    public static final ReportColumnTypes ExpandDictTree = new ReportColumnTypes(3,"ExpandDictTree","expanddict");
    public boolean isCalcColumn()
    {
        return this.equals(CalcColumn);
    }

    public int hashCode()
    {
        return super.hashCode();
    }

    protected ReportColumnTypes(int nId,String strName,String str)
    {
        super(nId,strName,str);
    }

    public static ReportColumnTypes fromName(String str)
    {
        return(ReportColumnTypes) IntegerPair.findConstant(ReportColumnTypes.class,str,Normal);
    }
}
